﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ledict.ConditionExtract.DAL;
using System.Data;
using Ledict.ConditionExtract.Model;

namespace Ledict.ConditionExtract.BLL
{
   public class WordBankSynonymBLL
    {
       WordBankSynonymDAL dal = new WordBankSynonymDAL();

        /// <summary>
        /// 是否存在该记录
        /// </summary>
        public bool Exists(string WBS_SynonymWords)
        {
            return dal.Exists(WBS_SynonymWords);
        }


        /// <summary>
        /// 增加一条数据
        /// </summary>
        public bool Add(SYS_WordBank_Synonym Model)
        {
            return dal.Add(Model);
        }
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public bool Update(SYS_WordBank_Synonym Model)
        {
            return dal.Update(Model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(string WBS_ID)
        {
            return dal.Delete(WBS_ID);
        }
        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataTable GetList(string WhereText )
        {
            return dal.GetList(WhereText);
        }
    }
}
